﻿using System;
using System.Collections.Generic;

namespace OurWedding1.Models
{
    public partial class WeddingPhoto
    {
        public string GenerateImageFileName()
        {
            var account = new CloudinaryDotNet.Account("hdq73umpz", "694358231294957", "U2rCpJXbmiH2dj8gUxQ2bhI7lFg");

            var cloudinary = new CloudinaryDotNet.Cloudinary(account);

            return  String.Format("{0}.{1}", PublicId, "jpg");
        }
    }

    public class WeddingPhotoBuddy

    {
        public int WeddingPhotoId { get; set; }
        public int? WeddingId { get; set; }
        public string PublicId { get; set; }
        public virtual Wedding Wedding { get; set; }
    }
}